<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>API docs for &ldquo;pymine.util.httpserve&rdquo;</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="module">Module p.u.httpserve</h1>
    <p>
      <span id="part">Part of <a href="pymine.html">pymine</a>.<a href="pymine.util.html">util</a></span>
      
      
    </p>
    <div>
      
    </div>
    <div>http://docs.djangoproject.com/en/dev/howto/static-files/ says:</p>
<p>&lt;QUOTE&gt;Django itself doesn't serve static (media) files, such as 
images, style sheets, or video. It leaves that job to whichever Web server 
you choose.  The reasoning here is that standard Web servers, such as 
Apache, lighttpd and Cherokee, are much more fine-tuned at serving static 
files than a Web application framework.&lt;/QUOTE&gt;</p>
<p>...which is fine, but which doesn't actually help us when Django is 
being used to implement potentially hundreds of mini-websites with their 
own novel forms of authentication and where you don't want management 
overhead of keeping (documenting?) how to synchronise their authentication 
needs with [INSERT NAME OF PREFERRED WEBSERVER DU JOUR].</p>
<p>See also: http://code.djangoproject.com/ticket/2131#comment:2</p>
<p>&lt;QUOTE&gt;Django isn't meant to serve static files, so I'm marking 
this as a wontfix.&lt;/QUOTE&gt;</p>
<p>So in the face of those wanting to nanny us into &quot;proper 
behaviour&quot;, regrettably we have to roll our own.</p>
<p>We are allowed to take the performance hit, because the point is to have
&quot;one mine per user spattered all over the world&quot; rather than 
&quot;bazillion mines all at one hosting company which subsequently suffers
performance issues&quot;.<table class="fieldTable"></table></div>
    
    
    <div id="splitTables">
      <table class="children sortable" id="id153">
  
  
  
  
  <tr class="function">
    
    
    <td>Function</td>
    <td><a href="pymine.util.httpserve.html#cleanpath">cleanpath</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="function">
    
    
    <td>Function</td>
    <td><a href="pymine.util.httpserve.html#httpserve_error">httpserve_error</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="function">
    
    
    <td>Function</td>
    <td><a href="pymine.util.httpserve.html#httpserve_file">httpserve_file</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="function">
    
    
    <td>Function</td>
    <td><a href="pymine.util.httpserve.html#httpserve_directory">httpserve_directory</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="function">
    
    
    <td>Function</td>
    <td><a href="pymine.util.httpserve.html#httpserve_path">httpserve_path</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    
    <div class="function">
        <a name="pymine.util.httpserve.cleanpath"></a>
        <a name="cleanpath"></a>
        <div class="functionHeader">
        
        def cleanpath(old):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.util.httpserve.httpserve_error"></a>
        <a name="httpserve_error"></a>
        <div class="functionHeader">
        
        def httpserve_error(url_path):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.util.httpserve.httpserve_file"></a>
        <a name="httpserve_file"></a>
        <div class="functionHeader">
        
        def httpserve_file(file_path, content_type):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.util.httpserve.httpserve_directory"></a>
        <a name="httpserve_directory"></a>
        <div class="functionHeader">
        
        def httpserve_directory(file_path):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div><div class="function">
        <a name="pymine.util.httpserve.httpserve_path"></a>
        <a name="httpserve_path"></a>
        <div class="functionHeader">
        
        def httpserve_path(request, orig_path):
        
      </div>
        <div class="functionBody">
          
          <div class="undocumented">Undocumented</div>
        </div>
      </div>
    
    <address>
      <a href="index.html">API Documentation</a> for pymine, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-04-07 23:15:24.
    </address>
  </body>
</html>